<template>
  <div class="screen">
    <el-form ref="Form" :model="Form" label-width="140px">
      <el-form-item label="开启现场大屏">
        <el-switch v-model="value1"> </el-switch>
      </el-form-item>
      <el-form-item label="大屏风格">
        <div class="outerBox">
        <div class="showBox">
          <div
            class="currency"
            v-for="(item, i) in list"
            :key="i"
            :class="{ active: current == i }"
            @click="currencyClick(i)"
          >
            {{ item }}
          </div>
        </div>
        </div>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      Form: {},
      value1: true,
      current: 0,
      list: ["通用", "科技", "政务"],
    };
  },
  methods:{
    currencyClick(i){
      this.current = i
    }
  }
};
</script>

<style lang="scss" scoped>
.screen {
  margin: 30px 0 0 50px;
  width: 300px;
  ::v-deep.el-form-item__label {
    padding-right: 40px;
  }
  .outerBox {
    width: 200px;
    height: 40px;
    display: flex;
    align-items: center;
    .showBox {
      border-radius: 30px;
      background-color: #dbdbdb;
      width: 100%;
      height: 30px;
      display: flex;
      color: #fff;
      font-weight: 600;
      .active {
        background-color: $themeColor;
      }
      .currency {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50%;
        height: 100%;
        border-radius: 30px;
        cursor: pointer;
      }
    }
  }
}
</style>